package com.aspose.cells;

class zwm extends zck {
   zwm(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      com.aspose.cells.b.a.b.a.ze var2 = new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var3 = new com.aspose.cells.b.a.b.zo[4];
      com.aspose.cells.b.a.b.zo var4;
      com.aspose.cells.b.a.b.zo var5;
      switch(this.e.b) {
      case 1:
         var3[0] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g());
         var3[1] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g());
         var3[2] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g() + 0.8F * var1.i());
         var3[3] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g() + 0.93F * var1.i());
         var4 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() + var1.i() * 1.13F);
         var5 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() + 0.8F * var1.i());
         var2.a(var3[0], var3[1]);
         var2.a(var3[1], var3[2]);
         var2.a(var3[2], var5, var4, var3[3]);
         var2.a(var3[3], var3[0]);
         break;
      case 2:
         var3[0] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g() + var1.i() * 0.07F);
         var3[1] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g() + var1.i() * 0.2F);
         var3[2] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g() + var1.i());
         var3[3] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g() + var1.i());
         var4 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() - var1.i() * 0.13F);
         var5 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() + 0.2F * var1.i());
         var2.a(var3[0], var4, var5, var3[1]);
         var2.a(var3[1], var3[2]);
         var2.a(var3[2], var3[3]);
         var2.a(var3[3], var3[0]);
         break;
      case 3:
         var3[0] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g() + var1.i() * 0.2F);
         var3[1] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g() + var1.i() * 0.07F);
         var3[2] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g() + var1.i());
         var3[3] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g() + var1.i());
         var4 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() - var1.i() * 0.13F);
         var5 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() + 0.2F * var1.i());
         var2.a(var3[0], var5, var4, var3[1]);
         var2.a(var3[1], var3[2]);
         var2.a(var3[2], var3[3]);
         var2.a(var3[3], var3[0]);
         break;
      case 4:
         var3[0] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g());
         var3[1] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g());
         var3[2] = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h(), var1.g() + 0.93F * var1.i());
         var3[3] = new com.aspose.cells.b.a.b.zo(var1.f(), var1.g() + 0.8F * var1.i());
         var4 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() + var1.i() * 1.13F);
         var5 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() + 0.8F * var1.i());
         var2.a(var3[0], var3[1]);
         var2.a(var3[1], var3[2]);
         var2.a(var3[2], var4, var5, var3[3]);
         var2.a(var3[3], var3[0]);
      }

      var2.i();
      return var2;
   }

   void c(com.aspose.cells.b.a.b.zq var1) {
      var1 = this.d(var1);
      super.c(var1);
   }

   private com.aspose.cells.b.a.b.zq d(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      switch(this.e.b) {
      case 1:
      case 4:
      default:
         break;
      case 2:
         var3 = var1.g() + var1.i() * 0.2F;
         break;
      case 3:
         var3 = var1.g() + var1.i() * 0.2F;
      }

      com.aspose.cells.b.a.b.zq var4 = new com.aspose.cells.b.a.b.zq(var2, var3, var1.h(), var1.i() * 0.8F);
      return var4;
   }
}
